<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$PAGE_TITLE}>-<{$PAGE_TITLE_SUFFIX}></title>
<meta name='keywords' content='<{$PAGE_KEYWORD}>' />
<meta name='description' content='<{$PAGE_DESCRIPTION}>' />
<link rel="stylesheet" href="<{$SKIN_FOLDER}>Css/index.css" />
<script type='text/javascript' src="<{$SKIN_FOLDER}>Plus/common.js"></script>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/jquery-1.4.4.min.js"></script>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/form.js"></script>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/artdialog/artDialog.min.js"></script>
<link rel="stylesheet" type="text/css" href="<{$SKIN_FOLDER}>Plus/autovalidate/style.css"/>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/autovalidate/validate.js"></script>
<{block name='head'}><{/block}>
</head>

<body class="index">
<div class="ucenter container">
	<{include file='inc_top_nav.html'}>
	<{include file='inc_head_menu.html'}>
	</div>

	<div class="position">
		您当前的位置： <a href="/">首页</a>&nbsp;&gt;&nbsp;我的账户
	</div>
	<div class="wrapper clearfix">
		<div class="sidebar f_l">
			<img src="<{$SKIN_FOLDER}>Css/ucenter.gif" width="180" height="40" />
                        <{if $IS_Agent}>
			<div class="box">
				<div class="title"><h2 class='bg5'>代理专区</h2></div>
				<div class="cont">
					<ul class="list">
                                            <li><a href="index.php?m=AC_Relation_Manage">关系管理</a></li>
                                            <li><a href="index.php?m=AC_Promotor">推广员</a></li>
                                            <li><a href="index.php?m=AC_Preorderseat">预购席位</a></li>
					</ul>
				</div>
			</div>
			<div class="box">
				<div class="title"><h2 class='bg2'>代理服务</h2></div>
				<div class="cont">
					<ul class="list">
                                            <li><a href="index.php?m=AC_Shop_Edit">商铺设置</a></li>
                                            <li><a href="index.php?m=AC_Product_List">商品管理</a></li>
                                            <li><a href="index.php?m=AC_Product_Edit">发布商品</a></li>
                                            <li><a href="index.php?m=AC_Order_List">订单列表</a></li>
					</ul>
				</div>
			</div>
                        <{/if}>
			<div class="box">
				<div class="title"><h2>交易记录</h2></div>
				<div class="cont">
					<ul class="list">
						<li><a href="index.php?m=UC_MyOrder">我的订单</a></li>
						<li><a href="index.php?m=UC_Integral">我的积分</a></li>
						<li><a href="index.php?m=UC_Redpacket">我的代金券</a></li>
					</ul>
				</div>
			</div>
			<div class="box">
				<div class="title"><h2 class='bg2'>服务中心</h2></div>
				<div class="cont">
					<ul class="list">
						<li><a href="index.php?m=UC_Refunds">退款申请</a></li>
						<li><a href="index.php?m=UC_Complain">站点建议</a></li>
						<li><a href="index.php?m=UC_Consult">商品咨询</a></li>
						<li><a href="index.php?m=UC_Evaluation">商品评价</a></li>
					</ul>
				</div>
			</div>
			<div class="box">
				<div class="title"><h2 class='bg3'>应用</h2></div>
				<div class="cont">
					<ul class="list">
						<li><a href="index.php?m=UC_Message">短信息</a></li>
						<li><a href="index.php?m=UC_Favorite">收藏夹</a></li>
					</ul>
				</div>
			</div>
			<div class="box">
				<div class="title"><h2 class='bg4'>账户资金</h2></div>
				<div class="cont">
					<ul class="list">
						<li><a href="index.php?m=UC_AccountLog">帐户余额</a></li>
						<li><a href="index.php?m=UC_Recharge">在线充值</a></li>
					</ul>
				</div>
			</div>
			<div class="box">
				<div class="title"><h2 class='bg5'>个人设置</h2></div>
				<div class="cont">
					<ul class="list">
						<li><a href="index.php?m=UC_Address">地址管理</a></li>
						<li><a href="index.php?m=UC_Profile">个人资料</a></li>
						<li><a href="index.php?m=UC_ResetPassword">修改密码</a></li>
                                                <li><a href="index.php?m=UC_Renewal">会员开通/续费</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="main f_r">
                    <{block name='body'}><{/block}>

</div>

<script type='text/javascript'>
	//修改备注信息
	function edit_summary(idVal)
	{
		var summary = $("#summary_val_"+idVal).val();
		if($.trim(summary))
		{
			$.getJSON('/index.php?controller=ucenter&action=edit_summary',{id:idVal,summary:summary},function(content){
				if(content.isError == false)
				{
					$('#summary_show_'+idVal).html(summary);
					$("#summary_box_"+idVal).hide();$("#summary_button_box_"+idVal).show();
					$('#summary_val_'+idVal).val('');
				}
				else
				{
					alert(content.message);
				}
			});
		}
		else
		{
			alert('请填写备注信息');
		}
	}

	//统计总数
	$('#favoriteSum').html('0');

	//[ajax]加入购物车
	function joinCart_ajax(id,type)
	{
		$.getJSON('/index.php?controller=simple&action=joinCart',{goods_id:id,type:type},function(content){
			if(content.isError == false)
			{
				var count = parseInt($('[name="mycart_count"]').html());
				$('[name="mycart_count"]').html(count + 1);
				$('.msgbox').hide();
				alert(content.message);
			}
			else
			{
				alert(content.message);
			}
		});
	}

	//列表页加入购物车统一接口
	function joinCart_list(id)
	{
		$.get('/index.php?controller=simple&action=getProducts',{id:id},function(content){
			if(content == '')
			{
				joinCart_ajax(id,'goods');
			}
			else
			{
				$('#product_box_'+id).html(content);
				$('#product_box_'+id).parent().show();
			}
		});
	}
</script>

	</div>


	<div class="help m_10">
		<div class="cont clearfix">
									
					</div>
	</div>
<script type='text/javascript'>
	//tabs的通用代码
	(function($){
		$(".tabs").each(function(i){
		    var parrent = $(this);
			$('.tabs_menu .node',this).each(function(j){
				var current=".node:eq("+j+")";
				$(this).bind('click',function(event){
					$('.tabs_menu .node',parrent).removeClass('current');
					$(this).addClass('current');
					$('.tabs_content>.node',parrent).css('display','none');
					$('.tabs_content>.node:eq('+j+')',parrent).css('display','block');
				});
			});
		});
	})(jQuery);

	//隔行换色
	$(".list_table tr::nth-child(even)").addClass('even');
	$(".list_table tr").hover(
		function () {
			$(this).addClass("sel");
		},
		function () {
			$(this).removeClass("sel");
		}
	);
    //用户中心导航条
    function menu_current()
    {
        var current = "favorite";
        if(current == 'consult_old') current='consult';
        else if(current == 'isevaluation') current ='evaluation';
        else if(current == 'withdraw') current = 'account_log';
        var tmpUrl = "/index.php?controller=ucenter&action=current";
        tmpUrl = tmpUrl.replace("current",current);
        $('div.cont ul.list li a:[href^="'+tmpUrl+'"]').parent().addClass("current");
    }
    menu_current();
</script>
<{include file='inc_footer.html'}>